public class CalcString{
  public String str;

  public String toString(){
    if (str.contains(" "))
      return "\"" + str.replaceAll("\"", "\\\"") + "\"";
    else
      return "'" + str;
  }

  public CalcString(String set){
    str = set;
  }
}
